<html>
<body>
<div id="d1">
<p id="p1">This is paragraph 1.</p>
<p id="p2">This is paragraph 2.</p>

<script>
var par=document.getElementById("d1");
var chd=document.getElementById("p1");
par.removeChild(chd);
</script>
</body>
</html>